home *** CD-ROM | disk | FTP | other *** search
- ' *********************************************************************
- ' * cleanup.bas formatted from dmanager.bas
- ' * January 14, 1988 at 11:56 pm. Formatted by QBF (C)opyright 1988.
- ' * QBF is available from Inventories Unlimited, USA, (215) 922-2557.
- ' *********************************************************************
-
- '$INCLUDE: 'qbtools2.inc'
- '
- ' Directory Manager
- ' (c) Copyright, 1988 Roy Barrow, QBTOOLS/2 Author
- ' Source code is distributed. Basically unusable without QBTOOLS/2
- ' QBTOOLS/2 is available from:
- '
- ' Inventories Unlimited Inc.
- ' 222 Church Street
- ' Philadelphia, PA 19106-2251
- ' 215-922-2557 (Voice)
- ' 215-627-3910 (Data)
-
- DIM Dirs$(250) ' Allow 250 directories
-
- PRINT " Dir Cleanup (c) Copyright Roy Barrow 1988."
- PRINT " Uses portions of QBTOOLS/2"
- PRINT
-
- PRINT "Reading directories ....";
- GetDirectories Dirs$(), Dcount%
- PRINT " done."
-
- IF Dcount% < 0 THEN
- PRINT "There are TOO many directories to manage properly."
- PRINT "Acquire QBTOOLS/2 and INCREASE the DIM Dirs$() statement."
- END
- END IF
-
- PRINT "Sorting directories ....";
- QuickSort Dirs$(), Dcount%
- PRINT " done."
-
- PRINT "Cleaning Directories."
-
- DDel% = 0
-
- FOR j% = Dcount% TO 1 STEP -1
- DDir$ = Dirs$(j%)
- Trim DDir$
- TestDel% = SubDirRemove%(DDir$)
- IF TestDel% = 0 THEN
- PRINT " "; DDir$; " empty, was deleted."
- DDel% = DDel% + 1
- END IF
- NEXT j%
-
- IF DDel% <> 0 THEN
- PRINT DDel%;
- ELSE
- PRINT "No ";
- END IF
-
- PRINT "empty ";
-
- IF DDel% = 1 THEN
- PRINT "sub-directory ";
- ELSE
- PRINT "sub-directories ";
- END IF
-
- PRINT "deleted."
-
-
- END
-
-
-
-
-
-
- ' *********************************************************************
- ' * cleanup.bas formatted from dmanager.bas
- ' * January 14, 1988 at 11:56 pm. Formatted by QBF (C)opyright 1988.
- ' * QBF is available from Inventories Unlimited, USA, (215) 922-2557.
- ' * Longest lines: 73(12), 71(33), 64(32), 57(11), 55(23).
- ' * Total lines = 85. Maximum indentation depth = 3.
- ' *********************************************************************
-
-